package com.easylinkin.linkappapi.crane.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.easylinkin.linkappapi.common.model.RequestModel;
import com.easylinkin.linkappapi.crane.entity.CraneOperationArea;
import com.easylinkin.linkappapi.crane.mapper.CraneOperationAreaMapper;
import com.easylinkin.linkappapi.crane.service.ICraneOperationAreaService;
import org.springframework.stereotype.Service;

/**
 * 吊车作业区域表 服务实现类
 *
 * @author xy
 * @since 2025-06-16
 */
@Service
public class CraneOperationAreaServiceImpl extends ServiceImpl<CraneOperationAreaMapper, CraneOperationArea> implements ICraneOperationAreaService {
    @Override
    public IPage<CraneOperationArea> queryPageList(RequestModel<CraneOperationArea> requestModel) {
        return baseMapper.queryPageList(requestModel.getPage(), requestModel.getCustomQueryParams());
    }

    @Override
    public CraneOperationArea queryById(Long id) {
        return baseMapper.queryById(id);
    }
}